//
//  GAKKINetworkApi.m
//  GANGAIKit
//
//  Created by fh on 2019/11/13.
//  Copyright © 2019 cashchina. All rights reserved.
//

#import "GAKKINetworkApi.h"

@interface GAKKINetworkApi ()
@property (nonatomic, readwrite, strong) NSString *innerHost;
@end

@implementation GAKKINetworkApi
+ (instancetype)api {
    GAKKINetworkApi *api = [GAKKINetworkApi new];
    return api;
}
// 外部主机
- (NSString *)host {
    return self.innerHost;
}
- (NSString *)createAbsoluteURLStrWithApi:(NSString *)api {
    return [NSString stringWithFormat:@"%@%@",self.innerHost,api];
}
// 主机
- (NSString *)innerHost {
// 外网测试环境
//    NSString *currentHost = @"http://58.249.117.91:8080/fh-risk-app-web";
// 生产环境
    NSString *currentHost = @"http://api.new.umiaohealth.com";
    return currentHost;
}

/// 测试接口
- (NSString *)test {
    return @"https://gateway.marvel.com:443/v1/public/characters?apikey=d97bab99fa506c7cdf209261ffd06652&hash=c5cf90bebfaccf9d2fb1f5eceb599b18&ts=E123DFB8-AF9C-4974-8D3E-4C61202D15C2";
//    return @"https://www.baidu.com";
//    return [self createAbsoluteURLStrWithApi:@"/xxx/xxx"];
}

@end
